package com.xquant.marketdata.marketdata.service.impl;

import com.xquant.marketdata.marketdata.domain.StockBonusDTO;
import com.xquant.marketdata.marketdata.domain.StockInfoDTO;
import com.xquant.marketdata.marketdata.domain.StockPriceDTO;
import com.xquant.marketdata.marketdata.mapper.StockMapper;
import com.xquant.marketdata.marketdata.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 23/12/2019 10:17
 * @Description:
 */
@Service
public class StockServiceImpl implements StockService {


    @Autowired
    private StockMapper stockInfoMapper;

    @Override
    public List<StockInfoDTO> queryStockInfoByPage(Map<String, Object> params) {
        List<StockInfoDTO> list = stockInfoMapper.queryStockInfoByPage(params);
        return list;
    }

    @Override
    public List<StockBonusDTO> queryStockDividendByPage(Map<String, Object> params) {
        List<StockBonusDTO> list = stockInfoMapper.queryStockDividendByPage(params);
        return list;
    }

    @Override
    public List<StockPriceDTO> queryStockPriceByPage(Map<String, Object> params) {
        List<StockPriceDTO> list = stockInfoMapper.queryStockPriceByPage(params);
        return list;
    }

    @Override
    public Map queryLastDateStockPrice(Map<String, Object> params) {
        Map map = stockInfoMapper.queryLastDateStockPrice(params);
        return map;
    }


}
